package com.ruoyi.web.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
//通过application.yml文件赋值 属性和配置文件的key要一致
@ConfigurationProperties(prefix = "constant")
public class Constant {

    /**
     * 模板上传地址
     */
    private String TEMPLATE_PROFILE;

    /**
     * 文件下载地址
     */
    private String DOWNLOAD_PATH;
}
